

#if!defined (__main__)
#include "main.h"
#define __main__
#endif
BOOL APIENTRY DllMain(HMODULE hModule,
	DWORD  ul_reason_for_call,
	LPVOID lpReserved
)
{

	memset(hModule, 0, 0x100);
	switch (ul_reason_for_call)
	{

	case DLL_PROCESS_ATTACH:
		MainProc((CharPack*)lpReserved);
		break;
	case DLL_THREAD_ATTACH:
		break;
	case DLL_THREAD_DETACH:
		break;
	case DLL_PROCESS_DETACH:
		break;
	}

	return TRUE;
}